import static org.junit.Assert.*;

import org.junit.Test;


/**
 * Tests the method in the nurse class for deleting a patient
 * @author Team 9
 *
 */

public class NurseDeletePatientTest {
	/**
	 * the test method for the deletePatient method (Nurse)
	 */
	@Test
	public void testDeletePatient() {
		Patient p1 = new Patient("Patient", "One", "patient", "one");
		Patient p2 = new Patient("Patient", "Two", "patient", "two");
		Gui.addToPatientArray(p1);
		Gui.addToPatientArray(p2);
		Nurse n1 = new Nurse("Nurse", "One", "nurse", "one");
		n1.delPatient(p1.firstName, p1.lastName);
		assertEquals(Gui.getPatientArray().get(0), p2);
		int before = Gui.getPatientArray().size();
		n1.delPatient("Patient", "Three");
		int after = Gui.getPatientArray().size();
		assertEquals(before, after);
	}
}
